import numpy as np

x1, y1 = 0, 0
x2, y2 = 1, 1
# 计算向量
vector = np.array([x2 - x1, y2 - y1])
distance = np.linalg.norm(vector)
print(distance)
